package org.skatiger.jrove.spring.models;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.skatiger.jrove.spring.Gender;
import org.skatiger.jrove.spring.Losted;

public class PersonForm {
    private String name;
    private String email;
    private String nickname;
    private Gender gender;
    private Losted losted = Losted.Maybe;

    private Losted[] losted2 = { Losted.Yes,
                                Losted.Maybe };

    private boolean chpwd;
    private boolean chpwd2;

    public void setLosted2(Losted[] losted2) {
        this.losted2 = losted2;
    }

    public Losted[] getLosted2() {
        return losted2;
    }

    public void setLosted(Losted losted) {
        this.losted = losted;
    }

    public Losted getLosted() {
        return losted;
    }

    public boolean isChpwd2() {
        return chpwd2;
    }

    public void setChpwd2(boolean chpwd2) {
        this.chpwd2 = chpwd2;
    }

    public boolean isChpwd() {
        return chpwd;
    }

    public void setChpwd(boolean chpwd) {
        this.chpwd = chpwd;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this,
                ToStringStyle.MULTI_LINE_STYLE);
    }
}
